#include "trianglewindow.h"  

#include <QGuiApplication>  

int main(int argc, char *argv[])
{
	QGuiApplication app(argc, argv);

	QSurfaceFormat format;
	format.setDepthBufferSize(16);
	format.setSamples(4);

	QSharedPointer<Renderer> renderer(new Renderer(format));
	TriangleWindow *window = new TriangleWindow(renderer);
	window->resize(640, 480);
	window->setVisible(true);

	return app.exec();
}